<template>
  <div class="style-2">
    <el-button type="primary" @click="login">使用睿那账户登录</el-button>
  </div>
</template>

<script>
export default {
  name: "goToLogin",
  beforeCreate() {
    //console.log(this.$cookie.get("rnty_access_token"));
  },
  methods: {
    login() {
      //如已登录则通过token获取用户信息，反之跳转到登录页
      this.GLOBAL.tokenRequest({
        baseURL: this.GLOBAL.RNTY_AUTH_BASE_URL,
        method: "get",
        url: "users/info"
      }).then(res => {
        //console.log(res.data);
      });
    }
  }
};
</script>

<style scoped>

</style>
